package com.lanyun.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "ly.jwt")
@Data
public class JwtProperties {

    /**
     * admin端jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

    /**
     * app端用jwt令牌相关配置
     */
    private String appSecretKey;
    private long appTtl;
    private String appTokenName;

    /**
     * 需要忽略的请求
     */
    private List<String> ignoreUris;

}
